﻿using System;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Dye_Lib;

namespace Dye_testlib
{
    [TestClass]
    public class UnitTest_UC004
    {
        private Project project = Project.Instance;

        /// <summary>
        /// Beschrijving:   Controleer of de file daadwerkelijk aangemaakt wordt.
        /// Verwacht:       True
        /// Reden:          
        /// </summary>
        [TestMethod]
        public void UC004_TestMethod1()
        {
            if (File.Exists("c:/testcase_DYE_Project"))
                File.Delete("c:/testcase_DYE_Project");
            int state = project.Opslaan(1, 1, "c:/testcase_DYE_Project");
            Assert.AreEqual(true, File.Exists("c:/testcase_DYE_Project"));
        }
    }
}
